package com.usian.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class Product implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String zid;
    private String name;
    @TableField(exist = false)
    private String sname;
    private Integer sid;
    private Integer maney;
    private String fu;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:hh")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:hh")
    private Date time;
    private String dan;
    private Integer shu;
}
